﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace NexCart.Web.Models {
	[MetadataType(typeof(Product.Metadata))]
	public partial class Product {
		class Metadata {
			
			[Required]
			public string Name { get; set; }

			[Required]
			[DataType(DataType.Currency)]
			public decimal Price { get; set; }

			[DataType(DataType.Currency)]
			public decimal ShippingCostPerItem { get; set; }

		}

	}
}
